Skip to content

Instantly share code, notes, and snippets.

Glass fakta om GB Glace (Unilever)
=== Glassar ======================================================================================================
Namn | År som nyhet | År när den togs bort | Anteckning av marknadsförings ändringar
Alexandra | ~1975 | |
Big Top | | |
Cornetto Choklad | | |
Cornetto Jordgubb | | |
Cornetto Citron | | |
Disco | | |
# Claude Code CLI Environment Variables
# This file lists all environment variables used in v2.1.202 with explanations
## Anthropic API & Authentication
ANTHROPIC_API_KEY - Primary API key for Anthropic's Claude API; used as an auth source (source "ANTHROPIC_API_KEY") when no OAuth token is configured
ANTHROPIC_AUTH_TOKEN - Alternative bearer token for Anthropic services; sent as Authorization: Bearer and takes priority over ANTHROPIC_API_KEY, also used with gateway mode
ANTHROPIC_BASE_URL - Custom base URL for the Anthropic API; overrides the default api.anthropic.com endpoint (a non-api.anthropic.com host marks the client as non-first-party)
ANTHROPIC_BETAS - Comma-separated list of beta feature headers appended (trimmed, non-empty) to the internal beta flags on API requests
ANTHROPIC_CUSTOM_HEADERS - Custom HTTP headers for API requests, parsed as newline-separated "Key: Value" pairs
@dvygolov
dvygolov / keitarolandingstats.js
Last active September 10, 2026 03:17
This bookmarklet shows statistical significance of your a/b tests in Keitaro tracker
function normalDistribution(Z, M, SD) {
var X = (Z - M) / SD;
var T = 1 / (1 + .2316419 * Math.abs(X));
var D = .3989423 * Math.exp(-X * X / 2);
var Prob = D * T * (.3193815 + T * (-.3565638 + T * (1.781478 + T * (-1.821256 + T * 1.330274))));
if (X > 0) {
Prob = 1 - Prob
}
return Prob

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@dvygolov
dvygolov / ywbackfix.js
Last active September 10, 2026 03:15
A script for adding any link on a back button click. Video review is on my Youtube Channel: youtube.com/@yellowweb
//use the script like this:
/*
<script src="ywbackfix.js"
data-links="['https://example.com?subid={subid}', 'https://second.com']"
data-traceenabled="false"
data-redirect="false"
data-isoff="false">
</script>
*/
const scriptTag = document.currentScript;
@dvygolov
dvygolov / clickunder.js
Created September 3, 2023 11:27
A script that shows how to make clickunders nowadays. Works great! First line is a website, that you'd like to load.
var website = "https://dzen.ru";
document.addEventListener("DOMContentLoaded", function() {
runClickunderCallback();
});
function runClickunderCallback() {
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active September 10, 2026 03:12
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@dvygolov
dvygolov / popunder.js
Created March 9, 2024 20:10
simplest onclick popunder possible
class Popunder {
constructor(url) {
this.targetUrl = url || "http://google.com";
this.cookieName = "popunder";
this.clicksRequired = 1;
this.expirationHours = 24;
this.cookiePath = ";path=/";
this.eventName = "click";
this.documentRoot = document.documentElement;
this.init();
@dvygolov
dvygolov / confirmclose.js
Created October 16, 2023 10:51
Adds a popup message that asks the user to confirm that he wants to leave our landing page when he closes it or changes url
addEventListener("beforeunload", () => {
// Do things before the page is closed.
event.preventDefault();
});